package com.ciwong.epaper.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ciwong.epaper.R;
import com.facebook.drawee.view.SimpleDraweeView;


/**
 * Created by keepon on 2018/8/7.
 */
public abstract class BaseDubVideoItemInView<T> extends LinearLayout {

    protected SimpleDraweeView mIvIcon;
    protected TextView mTvName;

    public BaseDubVideoItemInView(Context context) {
        this(context, null);
    }

    public BaseDubVideoItemInView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public BaseDubVideoItemInView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        LayoutInflater.from(this.getContext()).inflate(R.layout.item_view_dub_video, this);
        init();
    }

    private void init() {
        mIvIcon = findViewById(R.id.iv_icon);
        mTvName = findViewById(R.id.tv_name);
    }

    public abstract void bindData(T bean);
}
